package com.newworld.basketballfire.service.delegate;

import com.newworld.basketballfire.service.exception.ServiceException;
import com.newworld.basketballfire.service.model.Activity;
import com.newworld.basketballfire.service.model.ActivityParams;
import com.newworld.basketballfire.service.model.ListResult;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Created by George on 2019/3/31.
 * ActivityServiceDelegate
 */
public interface ActivityServiceDelegate {
    Activity createActivity(@RequestBody ActivityParams activityParams) throws ServiceException;

    Activity updateActivity(String id, ActivityParams activityParams) throws ServiceException;

    Activity getActivity(String id) throws ServiceException;

    void deleteActivity(String id) throws ServiceException;

    ListResult<Activity> getActivityList(String id, Integer pageNo, Integer pageSize) throws ServiceException;
}
